<template>
  <avue-crud :table-loading="Loading" :option="option" :data="data" v-model="form" @on-load="onLoad"> </avue-crud>
</template>

<script>
export default {
  name: 'SupplierList',
  data() {
    return {
      Loading: false,
      form: {},
      data: [],
      files: [],
      option: {
        detail: true,
        refreshBtn: false,
        columnBtn: false,
        border: true,
        stripe: true,
        index: true,
        editBtn: false,
        delBtn: false,
        addBtn: false,
        column: [
          {
            label: '物料分类',
            prop: 'materialCategory'
          },
          {
            label: '申请人',
            prop: 'applyPerson'
          },
          {
            label: '申请时间',
            prop: 'applyTime'
          },
          {
            label: '是否临时',
            prop: 'isTemporary'
          },
          {
            label: '可供时间',
            prop: 'availableTime'
          },
          {
            label: '状态',
            prop: 'status'
          }
        ]
      },
      page: {
        currentPage: 1,
        total: 0,
        pageSize: 10
      }
    }
  },
  methods: {
    handleClose(){
      this.$emit('update:visible',false)
    }
  }
}
</script>
